//--------------------------------------------------------------------------------
// This file is a \"Sample\" as from Windows Workflow Foundation
// Samples
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line documentation.  See these other
// materials for detailed information regarding Microsoft code samples.
// 
// THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//--------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Runtime.Serialization;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using System.CodeDom;

namespace MNS.Activities
{
    public partial class InitActivity : Activity
    {
        public static readonly DependencyProperty InitTextProperty = DependencyProperty.Register("InitText",
            typeof(string),
            typeof(InitActivity),
            new PropertyMetadata(new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible),
                new BrowsableAttribute(true),
                new DescriptionAttribute("InitText"),
                new CategoryAttribute("Data")));

        public string InitText
        {
            get { return (string)base.GetValue(InitActivity.InitTextProperty); }
            set { base.SetValue(InitActivity.InitTextProperty, value); }
        }


        public InitActivity()
	    {
            InitializeComponent();
        }

        protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
        {
            //InitText = "URA !";
            return ActivityExecutionStatus.Closed;
        }
    }
}
